<?php
namespace app\index\validate;

use think\Validate;

class EditUser extends Validate{
    protected $regex=['zip'=>'/^1[0-9]\d{9}$/'];
    protected $rule=[
        'nickname|昵称'=>'require|max:50|min:2',
        'birthday|生日'=>'date',
        'mobile|手机号'=>'regex:zip',
        'email|电子邮件'=>'require|email',
        'profiles|个人简介'=>'require|chsDash|max:50',
    ];




}

